const ReactRefreshPlugin = require('@pmmmwh/react-refresh-webpack-plugin')

module.exports = {
    mode: "development",
    devtool: 'cheap-module-source-map',
    target: 'web',
    devServer: {
        port: 3000,
        hot: true,
        compress: true,
        proxy: {
            '/api': {
                target: 'http://47.96.132.165:5000/',
                pathRewrite: {'^/api': ''},
                changeOrigin: true
            }
        }
    },
    plugins: [
        new ReactRefreshPlugin(),
    ]
}